package com.cn.qtms.ratelimit;//类注释设置模板

import java.lang.annotation.*;

/**
 * @Name:RateLimit
 * @Description:
 * @Author: zhangyang
 * @Date 2019-12-31 17:42
 **/

@Inherited
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RateLimit {
    double limitNum() default 2;  //默认每秒放入桶中的token
}